//
//  TopStatusView.m
//  EasyToTesco2.0
//
//  Created by 杨森 on 16/10/11.
//  Copyright © 2016年 EasyToTesco. All rights reserved.
//

#import "TopStatusView.h"

@implementation TopStatusView


- (instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray
{
    if (self = [super initWithFrame:frame]) {
        
        for (int i = 0; i < titleArray.count; ++i) {
            
            UILabel *lbl = [[UILabel alloc] init];
            lbl.text = titleArray[i];
            lbl.font = FONT(14);
            lbl.font = [UIFont boldSystemFontOfSize:14];
            [self addSubview:lbl];
            
            lbl.textColor = [UIColor blackColor];
            lbl.textAlignment = NSTextAlignmentCenter;
            lbl.frame = CGRectMake((WIDTH/titleArray.count)*i,0,WIDTH/titleArray.count,50);
            lbl.backgroundColor = [UIColor whiteColor];
        }
        
    }
    return self;
}


@end
